package com.ruoyi.shop.common.constant;

/**
 * 商城装修常量
 * 
 * @author xuxiang
 */
public class OrderConstants {

	/**
	 * 商城订单类型
	 */
	public static final Integer ORDER_TYPE_NORMAL = 0; // 普通订单

	/**
	 * 商城订单状态
	 */
	// 已关闭
	public static final Integer ORDER_STATUS_CLOASE = -1;
	public static final String ORDER_STATUS_CLOSE_NAME = "已关闭";

	// 待付款
	public static final Integer ORDER_STATUS_PAY = 1;
	public static final String ORDER_STATUS_PAY_NAME = "待付款";

	// 待发货
	public static final Integer ORDER_STATUS_DELIVERY = 2;
	public static final String ORDER_STATUS_DELIVERY_NAME = "待发货";

	// 待收货
	public static final Integer ORDER_STATUS_ROG = 3;
	public static final String ORDER_STATUS_ROG_NAME = "待收货";

	// 已完成
	public static final Integer ORDER_STATUS_FINISH = 4;
	public static final String ORDER_STATUS_FINISH_NAME = "已完成";

	// 待评价
	public static final Integer ORDER_STATUS_EVALUATE = 5;
	public static final String ORDER_STATUS_EVALUATE_NAME = "待评价";

	/**
	 * 商城(订单)退款类型
	 */
	public static final Integer ORDER_REFUND_TYPE_GOODS = 0;
	public static final String ORDER_REFUND_TYPE_GOODS_NAME = "退货退款";

	public static final Integer ORDER_REFUND_TYPE_MONEY = 1;
	public static final String ORDER_REFUND_TYPE_MONEY_NAME = "只退退款";

	/**
	 * 商城(订单)退款状态
	 */
	// 暂未退款
	public static final Integer ORDER_REFUND_STATUS_NO = 0;
	public static final String ORDER_REFUND_STATUS_NO_NAME = "未退款";
	// 退款处理中
	public static final Integer ORDER_REFUND_STATUS_DOING = 1;
	public static final String ORDER_REFUND_STATUS_DOING_NAME = "处理中";
	// 退款完成
	public static final Integer ORDER_REFUND_STATUS_SUCCESS = 2;
	public static final String ORDER_REFUND_STATUS_SUCCESS_NAME = "退款成功";
	// 退款失败
	public static final Integer ORDER_REFUND_STATUS_FAILURE = 3;
	public static final String ORDER_REFUND_STATUS_FAILURE_NAME = "退款失败";

	/**
	 * 商城(订单)退款进度
	 */
	public static final Integer ORDER_REFUND_PROGRESS_REFUSE = -1;// 已拒绝
	// 买家已申请,等待卖家同意
	public static final Integer ORDER_REFUND_PROGRESS_APPLY = 1;// 已申请
	// 买家同意等待(退货)退款
	public static final Integer ORDER_REFUND_PROGRESS_AGREE = 2;// 已同意
	// 买家已发货,等待卖家收货
	public static final Integer ORDER_REFUND_PROGRESS_DELIVEY = 3;// 已发货
	// 卖家已收货,等待卖家退款
	public static final Integer ORDER_REFUND_PROGRESS_ROG = 4;// 已收货
	// 卖家已退款中,等待到账
	public static final Integer ORDER_REFUND_PROGRESS_REFUND = 5;// 退款中
	// 退款成功，处理完成
	public static final Integer ORDER_REFUND_PROGRESS_FINISH = 6;// 已完成

	/**
	 * 商城(订单)操作记录
	 */
	public static final String ORDER_OPER_ACTION_CREATE = "create";
	public static final String ORDER_OPER_HISTORY_CREATE = "订单已创建";

	public static final String ORDER_OPER_ACTION_PAY = "pay";
	public static final String ORDER_OPER_HISTORY_PAY = "订单已付款";

	public static final String ORDER_OPER_ACTION_DELIVERY = "delivery";
	public static final String ORDER_OPER_HISTORY_DELIVERY = "订单已发货";

	public static final String ORDER_OPER_ACTION_FINISH = "finish";
	public static final String ORDER_OPER_HISTORY_FINISH = "签收成功,订单完成";

	public static final String ORDER_OPER_ACTION_CLOSE = "close";
	public static final String ORDER_OPER_HISTORY_CLOSE = "订单已关闭";

}
